<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<meta name="Keywords" content="家具代理，家具渠道，找家具，家具经销商，家具厂商，家具，" />
<meta name="Description" content="中国家具代理网，厂家与经销商商沟通的桥梁。" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/common.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/fl.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/ui.tabs.css" rel="stylesheet" type="text/css" />
<link href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" rel="stylesheet" type="text/css" />
<?php 
$message=isset($_GET['mess'])?$_GET['mess']:'';unset($_GET['mess']);
$cs=Yii::app()->clientScript;
$cs->registerScriptFile('./js/ui.tabs.pack.js');
$cs->registerScriptFile('./js/jquery.curvycorners.min.js');
$cs->registerScript('index_script1',<<<END
$(function(){						
			$('.c').corner();
			$('.inner').corner({
			  tl: { radius: 6 },
			  tr: { radius: 6 },
			  bl: { radius: 6 },
			  br: { radius: 6 }});
			$('.c2').corner({
			  tl: { radius: 32 },
			  tr: { radius: 16 },
			  bl: { radius: 16 },
			  br: { radius: 16 },
			  antialias: true,
			  autopad: false,
			  validTags: ["div"] });
			$('.c3').corner({
			  tl: { radius: 16 },
			  tr: false,
			  bl: false,
			  br: { radius: 16 },
			  antialias: true,
			  autopad: true,
			  validTags: ["div"] });		  
			$('#container-1 > ul').tabs();
	});
	$(function(){
	$('#webmenu li').hover(function(){
		$(this).children('ul').stop(true,true).show();
	},function(){
		$(this).children('ul').stop(true,true).hide();
	});
	
	$('#webmenu li').hover(function(){
		$(this).children('div').stop(true,true).show();
	},function(){
		$(this).children('div').stop(true,true).hide();
	});
});
$(function(){
	$('#webmenu li').hover(function(){
		$(this).children('ul').stop(true,true).show();
	},function(){
		$(this).children('ul').stop(true,true).hide();
	});
	
	$('#webmenu li').hover(function(){
		$(this).children('div').stop(true,true).show();
	},function(){
		$(this).children('div').stop(true,true).hide();
	});
});
END
);
$cs->registerScript('index_script2',<<<END
$("#login_button").click(
function(){
	if($.trim($("#username").val())==''){alert("用户名不能为空.");return;}
	if($("#password").val()==''){alert("密码不能为空.");return;}
	$.ajax({'type':'POST','url':'?r=site/login','async':false,'cache':false,'data':$("#login_form").serialize(),
		'success':function(date){
		json=$.parseJSON(date);
		if(json.ok){
			$("#login").show();$("#logout").hide();
			$("#linkman").html(json.linkman);
		}
		else alert('用户名或密码错误.');
	}});
}
);

var message="$message";
if(message!='') alert(message);
$("table.dataGrid tr").mousemove(function(){\$(this).addClass("odd1");}).mouseout(function(){\$(this).removeClass("odd1");});
END
);
?>
<title><?php echo $this->pageTitle; ?></title>
</head>

<body>
<div id="Top">
	<div id="Top1">
   		<ul  style="list-style:none">
      		<li><span id="clock"></span></li>
      		<li><a href="#" class="topLink" onclick="this.style.behavior='url(#default#homepage)';this.sethomepage('http://www.jiajia360.com');">设为首页</a></li>
      		<li><a href="#" onclick="window.external.addFavorite('http://www.jiajia360.com','家.加360--家具代理网');" style="" title="家.加360--家具代理网" class="topLink">加入收藏夹</a></li>
    	</ul>
  	</div>
	<div id="Top2">
		<ul  style="list-style:none">
			<li><a href="?r=site/merchants" class="topLink">商务中心</a></li>
       		<li><a href="?r=business/register" class="topLink">免费注册</a></li>
    	</ul>
	</div>
</div><!--end top-->
<div style="height:5px;"></div>
<div class="width_950"style="height:85px;">
	<div style="float:left;"><a href="index.php"><img src="images/logoa.jpg" width="210" height="77" alt="logo" /></a></div>
	<div style="float:right;"><a target="_blank" href="<?php echo Yii::app()->params['ad']['top1'][2];?>"><img src="<?php echo Yii::app()->params['ad']['top1'][0];?>" width="730" height="77" title="<?php echo Yii::app()->params['ad']['top1'][1];?>" /></a></div>
</div>
<div class="width_950"style="height:48px;"><!--导航和登录开始-->	
<script type=text/javascript>
$(function(){
	$('#webmenu li').hover(function(){
		$(this).children('ul').stop(true,true).show();
	},function(){
		$(this).children('ul').stop(true,true).hide();
	});
	
	$('#webmenu li').hover(function(){
		$(this).children('div').stop(true,true).show();
	},function(){
		$(this).children('div').stop(true,true).hide();
	});
});
</script>
	<div id="atop" ><!--导航条始-->	
<ul id="webmenu" class="first-menu" >
  <li><a href="?r=business/search_by_sort&product_sort=01"  target="_self">套房家具</a>
      <ul style="display: none;"  class="second-menu">
      <li><a href="?r=business/search_by_sort&product_sort=0101" class="arrow" target="_self">欧式风格</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0102" class="arrow" target="_self">古典家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0103" class="arrow" target="_self">现代板式家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0104" class="arrow" target="_self">现代实木家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0105" class="arrow" target="_self">烤漆家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0106" class="arrow" target="_self">红木家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0107" class="arrow" target="_self">青少年家具</a></li>
      </ul>
  </li>
  <li><a href="?r=business/search_by_sort&product_sort=02" target="_self">软体家具</a>
    <ul style="display: none;" class="second-menu">
      <li><a href="?r=business/search_by_sort&product_sort=0201" class="arrow" target="_self">沙发</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0202" class="arrow" target="_self">床/床垫</a></li>
    </ul>
  </li>
  <li><a href="?r=business/search_by_sort&product_sort=03" target="_self">办公家具</a>
   </li>
  <li><a href="?r=business/search_by_sort&product_sort=04" target="_self">低碳环保</a>
  </li>
  <li><a href="?r=business/search_by_sort&product_sort=05" target="_self">休闲家具</a>
    <ul style="display: none;" class="second-menu">
      <li><a href="?r=business/search_by_sort&product_sort=0501" class="arrow" target="_self">藤器</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0502" class="arrow" target="_self">户外家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0503" class="arrow" target="_self">休闲椅/沙发</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0504" class="arrow" target="_self">钢制家具</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0505" class="arrow" target="_self">玻璃餐桌/制品</a></li>
      <li><a href="?r=business/search_by_sort&product_sort=0506" class="arrow" target="_self">鞋柜</a></li>
    </ul> 
 </li>
    <li><a href="?r=site/merchants" class="arrow">招商合作</a></li>
     <li><a href="?r=business/my_jiajia" class="arrow">会员服务</a></li>
</ul>
	</div><!--end atop 导航条结束-->
	<div id="logout" style="float:left;height:48px;margin:2px;<?php echo isset(Yii::app()->session['linkman'])?'display:none':'';?>"><!--登录开始-->
	<form id="login_form" method="post" action="ok.php">
    	<table width="196" border="0" cellspacing="0" cellpadding="0">
      		<tr>
        		<td width="65" height="20">用户名：</td>
        		<td width="80"><input name="username" type="text" id="username" size="11" class="smallInput1"/></td>
        		<td width="55"><a href="?r=business/register">&nbsp;&nbsp;注册</a></td>
      		</tr>
     		<tr>
        		<td height="23">密　码：</td>
        		<td><input name="password" type="password" id="password" size="13" class="smallInput1"/></td>
       			<td>&nbsp;&nbsp;<input id="login_button" type="button" value="登录" class="buttonface"/> </td>
      		</tr>
    	</table> 
	</form>
	</div><!--登录结束-->
	<div id="login" style="float:left;height:48px;margin:2px;padding-left:20px;<?php echo !isset(Yii::app()->session['linkman'])?'display:none;':'';?>">
	<div>欢迎您：<span id="linkman" style="color:red;"><strong><?php echo Yii::app()->session['linkman'];?></strong></span>　用户<a style="color:red;" href="?r=site/logout"><strong>注销</strong></a></div><div>进入会员中心请点击 <a style="color:red;" href="?r=business/my_jiajia"><strong>此处</strong></a></div>
	</div>
	<div id="login_wait" style="float:left;height:48px;margin:2px;padding-left:20px;display:none;">
	<div>稍等。。。</div>
	</div>
</div><!--end导航和登录结束-->
<?php echo $content; ?>
<div class="width_950">
<p style="text-align:center;">&copy;家.加360网  www.jiajia360.com<br/>
  2010 版权所有<img src="images/logo5.jpg" width="69" height="21"/> 京ICP备10027808号<br/>
客户服务热线:13910798216 Email:mulegxg@sohu.com</p>
</div>
</body>
</html>